<?php /* Smarty version 2.6.11, created on 2011-07-04 10:55:23
         compiled from article_add.php */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="style/css/common.css" type="text/css" />
<LINK href="style/css/jquery-ui-1.7.2.custom.min.css" type=text/css rel=stylesheet>
<title>管理区域</title>
</head>
<body>
<div id="man_zone">

<table width="99%" border="0" align="center"  cellpadding="3" cellspacing="1" class="table_style">
<form id="form1" name="form1" method="post" action="">
  <tr>
    <td align="right">文章标题</td>
    <td>
      <input type="text" name="title" value="<?php echo $this->_tpl_vars['article']['title']; ?>
" size="60"  />
    </td>
  </tr>
  <tr>
    <td align="right">副标题</td>
    <td><input type="text" name="ftitle" value="<?php echo $this->_tpl_vars['article']['ftitle']; ?>
"  size="60" /></td>
  </tr>
   <tr>
    <td align="right">审核</td>
    <td>
    <input name="html" type="checkbox" value="1" <?php if ($this->_tpl_vars['article']['html']): ?>checked="checked"<?php endif; ?>>
    </td>
  </tr>
  <tr>
    <td align="right">自定义属性</td>
    <td>
      <label>
      	头条<input name="flag[]" type="checkbox" id="checkbox"<?php if ($this->_tpl_vars['article']['flag'] && in_array ( 'h' , $this->_tpl_vars['article']['flag'] )): ?> checked="checked"<?php endif; ?> value="h" />
      </label>
      <label>
      	推荐<input name="flag[]" type="checkbox" id="checkbox" <?php if ($this->_tpl_vars['article']['flag'] && in_array ( 'c' , $this->_tpl_vars['article']['flag'] )): ?> checked="checked"<?php endif; ?> value="c" />
      </label>
      <label>
      	幻灯<input name="flag[]" type="checkbox" id="checkbox"<?php if ($this->_tpl_vars['article']['flag'] && in_array ( 'f' , $this->_tpl_vars['article']['flag'] )): ?> checked="checked" <?php endif; ?> value="f" />
      </label>
      <label>
      	特荐<input name="flag[]" type="checkbox" id="checkbox"<?php if ($this->_tpl_vars['article']['flag'] && in_array ( 'a' , $this->_tpl_vars['article']['flag'] )): ?> checked="checked"<?php endif; ?> value="a" />
      </label>
      <label>
      	图片<input name="flag[]" type="checkbox" id="checkbox"<?php if ($this->_tpl_vars['article']['flag'] && in_array ( 'p' , $this->_tpl_vars['article']['flag'] )): ?> checked="checked"<?php endif; ?> value="p" />
      </label>
    </td>
  </tr>
   <tr>
    <td align="right">所属栏目</td>
    <td>
    <select name="classid">
    <?php $_from = $this->_tpl_vars['columns']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['val']):
?>
    <option value="<?php echo $this->_tpl_vars['val']['classid']; ?>
"<?php if ($this->_tpl_vars['val']['classid'] == $this->_tpl_vars['column']['classid']): ?> selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['val']['classname']; ?>
</option>
    <?php endforeach; endif; unset($_from); ?>
    </select>
    </td>
  </tr>
  <tr>
    <td align="right">缩略图</td>
    <td><input type="text" name="litpic" value="<?php echo $this->_tpl_vars['article']['litpic']; ?>
"  size="60" /></td>
  </tr>
   <tr>
    <td align="right">排序</td>
    <td><input type="text" name="sort" value="<?php echo $this->_tpl_vars['article']['sort']; ?>
"  /></td>
  </tr>
  <tr>
    <td align="right">作者</td>
    <td><input type="text" name="writer" value="<?php echo $this->_tpl_vars['user']['username']; ?>
"  /></td>
  </tr>
  <tr>
    <td align="right">tag</td>
    <td><input type="text" name="tag" value="<?php echo $this->_tpl_vars['article']['tag']; ?>
"  /></td>
  </tr>
  <tr>
    <td align="right">关键字</td>
    <td><input type="text" name="keyword" value="<?php echo $this->_tpl_vars['article']['keyword']; ?>
"  size="60" /></td>
  </tr>
   <tr>
    <td align="right">摘要</td>
    <td><textarea name="digest" cols="6" rows="4" style="width:500px;"><?php echo $this->_tpl_vars['article']['digest']; ?>
</textarea></td>
  </tr>
  <tr>
    <td align="right">内容</td>
    <td>
    <textarea name="content" id="content" class="content" cols="" rows="20" style="width:600px;">
    <?php echo $this->_tpl_vars['article']['content']; ?>

    </textarea></td>
  </tr>
  
  <tr>
    <td colspan="2">
    <input type="hidden" name="referrer" id="referrer" value="" />
    <input type="hidden" name="aid" value="<?php echo $this->_tpl_vars['article']['aid']; ?>
" />
    <input name="preview" type="button" value="预览" />
    <input name="" type="submit" value="提交" />
    </td>
  </tr>
  </form>
</table>

</div>
<SCRIPT src="style/js/ckeditor/ckfinder/ckfinder.js" type=text/javascript></SCRIPT>
<SCRIPT src="style/js/ckeditor/ckeditor.js" type=text/javascript></SCRIPT>
<script type="text/javascript">
//<![CDATA[
CKEDITOR.replace('content');
CKFinder.SetupCKEditor(CKEDITOR, 'style/js/ckeditor/ckfinder/');
document.getElementById("referrer").value = document.referrer;
//]]>
</script>
</body>
</html>